﻿@model KRM.Core.tblKRMTradeCustomer
@{
    ViewBag.Title = "New Order";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="~/js/trade.js"></script>
<div class="container-fluid">
    <div class="box">
        <div class="page-header"></div>
        <div class="fieldset">
            <div class="legend"><span >Trade account Order Import</span></div>
            <div class="row-fluid">
                <div class="span3">
                </div>
                <div class="span1 text-right">
                    Search
                </div>
                <form action="/trade/searchtradecustomer" method="POST" class="margin0 span8 row-fluid" id="fr-searchtradecustomer">
                    <div class="span4">
                        <input class="input-block-level" type="text" name="search" id="search"value="@Request["search"]" />
                    </div>
                    <div class="span2">
                        <input class="input-block-level btn btn-primary" style="width: 100%" type="submit" value="Search" />
                    </div>
                    <div class="span6">
                        @Html.DropDownList("TradeAccNumber",null,new{@class="input-block-level", @id="cb-tradecustomer",@onchange="window.location = '/trade/neworder/' + this.value;"})
                    </div>
                </form>
            </div>
        @if (Model != null)
        {
            
                <ul class="tabs tabs-inline tabs-top orderdetail-task-tabs margin0">
                    <li class="active">
                        <a href="#bulkload" data-toggle="tab">Bulk Upload</a>
                    </li>
                    <li>
                        <a href="#singleentry" data-toggle="tab">Single Entry</a>
                    </li>
                </ul>

                <div class="tab-content padding tab-content-inline tab-content-bottom orderdetail-task-tabs-content">
                    <div class="tab-pane active" id="bulkload">
                        @Html.Partial("BulkUpload",Model)
                    </div>
                    <div class="tab-pane" id="singleentry">
                    </div>
                </div>
           
        } 
        </div>
    </div>
</div>

